<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="all" />
<meta name="author" content="thinksaas@qq.com" />
<meta name="Copyright" content="ThinkSAAS" />
<title><?php echo $this->pageTitle; ?></title>
<link type="text/css" rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/base.css" charset="utf-8" />
</head>
<body>
<!--header-->
<div class="header">
<div class="hc">

<?php $this->widget('bootstrap.widgets.BootNavbar', array(
    'fixed'=>false,
    'brand'=>'BBS',
    'brandUrl'=>$this->createUrl('site/index'),
    'collapse'=>true, // requires bootstrap-responsive.css
    'items'=>array(
        array(
            'class'=>'bootstrap.widgets.BootMenu',
            'items'=>array(
                array('label'=>'首页', 'url'=>$this->createUrl('site/index'), 'active'=>true),
            ),
        ),
        '<form class="navbar-search pull-left" action=""><input type="text" class="search-query span2" placeholder="搜索"></form>',
        array(
            'class'=>'bootstrap.widgets.BootMenu',
            'htmlOptions'=>array('class'=>'pull-right'),
            'items'=>array(
                array('label'=>'登录', 'url'=>$this->createUrl('user/login'),'visible'=>Yii::app()->user->isGuest),
                array('label'=>'注册', 'url'=>$this->createUrl('user/register'),'visible'=>Yii::app()->user->isGuest),
                array('label'=>Yii::app()->user->name, 'url'=>'#', 'items'=>array(
                    array('label'=>'DROPDOWN HEADER'),
                    array('label'=>'基本信息', 'url'=>'#'),
                    array('label'=>'修改头像', 'url'=>'#'),
                    array('label'=>'修改密码', 'url'=>'#'),
                    '---',
                    array('label'=>'退出登录', 'url'=>$this->createUrl('user/logout')),
                ),'visible'=>!Yii::app()->user->isGuest),
            ),
        ),
    ),
)); ?>


</div>
</div>

<?php echo $content; ?>

<div class="footer">
<div><a href="<?php echo $this->createUrl('site/page',array('view'=>'about')); ?>">关于我们</a> | <a href="<?php echo $this->createUrl('site/page',array('view'=>'contact')); ?>">联系我们</a> | <a href="<?php echo $this->createUrl('site/page',array('view'=>'agreement')); ?>">用户条款</a> | <a href="<?php echo $this->createUrl('site/page',array('view'=>'privacy')); ?>">隐私申明</a></div>
Powered by <a class="softname" href="">ThinkSAAS</a> 1.8 2011-2012 京ICP备09050100号<br /><span style="font-size:0.83em;">

<?php
		// 查看执行了多少个语句，用了多少时间
		$getStatus = CDbConnection::getStats();
		echo $getStatus['0'].' query     Processed in '.number_format($getStatus['1'],6).' second(s)';
		?>
</span>
</div>
</body>
</html>